loadCMYKProfile

abstract suspend fun loadCMYKProfile()

Loads the CMYK profile used for managed color conversion and preview.

The profile is a resource, and a resource takes several update cycles to arrive, so a conversion that needs it can fail right after the engine starts. Await this once and every later convertColorToColorSpace answers without handling COLOR.PROFILE_NOT_LOADED.

Loads the profile the document names, otherwise the one the fallbackCMYKProfileUri setting names, which is the bundled default profile while that setting is unset. Call it again after changing either, so the new profile is loaded before the next conversion.